/**
 * This file is part of mycollab-dao.
 *
 * mycollab-dao is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * mycollab-dao is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with mycollab-dao.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.esofthead.mycollab.core.db.query;

/**
 * 
 * @author MyCollab Ltd.
 * @since 4.0
 * 
 */
public class Param {

	protected String id;

	protected Enum<?> displayName;

	public Param() {
		this("", null);
	}

	public Param(String id, Enum<?> displayName) {
		this.id = id;
		this.displayName = displayName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Enum<?> getDisplayName() {
		return displayName;
	}

	public void setDisplayName(Enum<?> displayName) {
		this.displayName = displayName;
	}

	@Override
	public boolean equals(Object value) {
		if (!(value instanceof Param)) {
			return false;
		} else {
			return id.equals(((Param) value).id);
		}
	}

}
